package cn.maiyar.common.api;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 业务异常
 *
 * @author c.c
 */
@Getter
@Setter
@ToString
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    @Getter
    private IResultCode resultCode;

    public BusinessException(String message) {
        super(message);
        this.resultCode = ResultCode.SYSTEM_EXECUTION_ERROR;
    }
}
